package com.carleasoft.mps.adu.business.org.bean.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 组织分类表
 * </p>
 *
 * @author ztm
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_organization_type")
@ApiModel(value="OrganizationType对象", description="组织分类表")
public class OrganizationType implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "分类编码")
    @TableField("ORG_TYPE_CODE")
    private String orgTypeCode;

    @ApiModelProperty(value = "分类名称")
    @TableField("ORG_TYPE_NAME")
    private String orgTypeName;

    @ApiModelProperty(value = "上级分类编码")
    @TableField("PARENT_TYPE_CODE")
    private String parentTypeCode;

    @TableField(value = "CREATE_PERSON_CODE",fill = FieldFill.INSERT)
    private String createPersonCode;

    @TableField(value = "CREATE_PERSON_NAME",fill = FieldFill.INSERT)
    private String createPersonName;

    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_PERSON_CODE",fill = FieldFill.UPDATE)
    private String updatePersonCode;

    @TableField(value = "UPDATE_PERSON_NAME",fill = FieldFill.UPDATE)
    private String updatePersonName;

    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @TableField(value = "SORT")
    private Integer sort;

    @TableField("SORT_DATE")
    private Long sortDate;

    @TableField("FULL_PATH")
    private String fullPath;

}
